import cookie from '../utils/cookie'

export function user (state) {
  return state.user
}

export function token (state) {
  return state.token || cookie.get('token')
}

export function unread (state) {
  return state.unread
}

export function ws (state) {
  return state.ws
}

export function msgArr (state) {
  return state.msgArr
}
